package com.first.computerstore.service;

import com.first.computerstore.dao.DistrictMapper;
import com.first.computerstore.entity.District;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DistrictService {
    @Resource
    private DistrictMapper districtMapper;
    public List<District> queryParent(Integer parent) {
        List<District> district = districtMapper.queryParent(parent);
        return district;
    }
}
